<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl"><{$tit}>管理</div>
                            </div>
                            <div class="am-form-group">
                                <{html_input1('用户名','data[username]',$info['username'])}>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">所属角色 </label>
                                <div class="am-u-sm-9 am-u-end">
                                <!-- multiple  -->
                                    <select name="data[role_id]" data-am-selected="{btnSize: 'sm'}">
                                    <option value="0">顶级角色</option>
                                        <?php if (isset($data_list)): foreach ($data_list as $role): ?>
                                            <option value="<?= $role['id'] ?>"
                                                <?= $role['id'] == $info['role_id'] ? 'selected' : '' ?>>
                                                <?= $role['name_h1'] ?></option>
                                        <?php endforeach; endif; ?>
                                    </select>
                                    <div class="help-block">
                                        <!-- <small>注：支持多选</small> -->
                                    </div>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">登录密码 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="password" class="tpl-form-input" name="data[password]"
                                           value="" placeholder="请输入登录密码">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <{html_input1('姓名','data[realname]',$info['realname'])}>
                            </div>
                            <div class="am-form-group">
                                <{html_input1('手机','data[tel]',$info['tel'])}>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">状态 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <{html_radios1("data[status]",$statusRadio,$info.status)}>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        /**
         * 表单验证提交
         * @type {*}
         */
        $('#my-form').superForm({});

    });
</script>
